package T;

/**
 * @Author:zimmor
 * @Date: 2021/10/29 8:56
 * @Description 有多个类型变量的泛型类
 * @version: 1.0.0
 */

public class Person<T,S> {
    private T name;
    private S age;

    public T getName() {
        return name;
    }

    public void setName(T name) {
        this.name = name;
    }

    public S getAge() {
        return age;
    }

    public void setAge(S age) {
        this.age = age;
    }

    public Person(T name, S age) {
        this.name = name;
        this.age = age;
    }
}
